package com.isunland.managesystem.ui;

import android.support.v4.app.Fragment;
import com.isunland.managesystem.R;
import com.isunland.managesystem.base.BasePagerActivity;
import com.isunland.managesystem.entity.CompanyForumType;

/**
 * 对象功能:
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: HuXiaoDan
 * 创建时间: 2017/6/13 17:02
 */
public class ExpertPagerActivity extends BasePagerActivity {
  @Override protected Fragment createFragmentOne() {
    //认证专家
    return new SeniorExpertListFragment();
  }

  @Override protected Fragment createFragmentTwo() {
    //资深用户
    CompanyForumType mCompanyType = (CompanyForumType) getIntent().getSerializableExtra(
        AgriculturalMyExpertListFragment.EXTAR_TYPE);
    return AgriculturalMyExpertListFragment.newInstance(mCompanyType);
  }

  @Override protected int[] createTitle() {
    return new int[] {
        R.string.seniorExpert, R.string.seniorUser,
    };
  }

  @Override protected void setFixedTitle(boolean isFixedTitle, String fixedTitle) {
    super.setFixedTitle(true, getString(R.string.expertList));
  }
}
